{% extends "layout.html.twig" %}
{% form_theme form 'AcmeEventBundle:Form:fields.html.twig' %}
{% block content %}
	
			<h2>Events edit</h2>
			
			{{ form_start(form) }}
			    {{ form_errors(form) }}
			
				<div class="row">
					<div class="col-md-6">
						{{ form_widget(form.datum, {
						    	'information': information
							}) 
						}}
					</div>				
					<div class="col-md-6">
					    <div class="form-group">
					        {{ form_label(form.user) }}
					        {{ form_errors(form.user) }}
					        {{ form_widget(form.user, {value: information.pid ~ "" }) }}
					    </div>
				    </div>
				</div>
			    <div class="row">
			    	<div class="col-md-12">
			    		<div class="form-group">
			        		{{ form_widget(form.save, { attr: {'class':'btn btn-default'}} ) }}
			        	</div>
			        </div>
			    </div>
			
			{{ form_end(form) }}
			
			
{% endblock %}			